]> dgit.raspbian.org Git - gnome-shell.git/commit
authPrompt: Handle Escape key to cancel ongoing verification
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 1 Feb 2021 11:52:01 +0000 (12:52 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 12 Feb 2021 20:26:00 +0000 (20:26 +0000)
commit7e77881717579ec2e5f854e262dd2acc423a69bf
treeaa2745fcafd649777a3494003f6e45aedbcfc7bd
parent3e96952fde64d2f4ddab76dc9c650a74e1ccf516
authPrompt: Handle Escape key to cancel ongoing verification

Escape key is supposed to cancel a verification, however if the user
already hit Enter to begin the authentication the Escape key won't work
until the verification completed.

This may be quite inconvenient when an user did a typo while writing and
wants to cancel the already started auth.

So, while authenticating (or in general while the entry is unsensitive)
give the key focus to the authpromt itself so that we can still get the
input events and cancel an user action.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1622>
js/gdm/authPrompt.js